#pragma once
#include "xFrame.h"
#include "xFontMgr.h"
#include "xButton.h"
typedef xFrame *(*FunCreateObject)();

class xFrameBase : public xFrame
{
public:
	xFrameBase();
	virtual ~xFrameBase();
	XDECLARE_MESSAGE_MAP();
private:
	xFontMgr	m_font;
	xFont		*m_pFont;
	xBrush		*m_bsh0,
				*m_bsh1;
	xButton		m_btnClose;
	DWORD		dw,count;
	int			xxxxxx ;
	CString		xxd;
protected:
	CString		m_path;	
	xButton    m_btnFullscreen;
	DWORD		m_dwMainThreadID;
	BOOL		m_bFullscreen;
protected:
	virtual BOOL OnCreate(CREATESTRUCT *pCreate);
	virtual void OnDraw();
	virtual void OnAsyncMsg(DWORD dwFuncID, WPARAM wParam, LPARAM lParam, DWORD nThreadIDReturn, FnAsync then);
	virtual BOOL Reset(UINT nSampleCount);
protected:
	void OnBtnClose(xControl &sender);
	void OnBtnFullscreen(xControl &sender);
	void OnBtnShow(xControl &sender);
public:
	void	SetThread(DWORD dwThreadID);
	DWORD	GetClearColor();
};